package com.lnking.lnkingplace.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.lnking.starter.mybatis.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangqt
 * @since 2022-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="IsolationRoom对象", description="")
public class IsolationRoom extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "场所id")
    private String placeId;

    @ApiModelProperty(value = "房间号")
    private String roomNumber;

    @ApiModelProperty(value = "使用状态")
    private String useStatus;

    @ApiModelProperty(value = "是否阳性专用")
    private String positiveDedicated;

    @ApiModelProperty(value = "自费/收费")
    private String costType;

    @ApiModelProperty(value = "价格")
    private String price;

    @ApiModelProperty(value = "删除")
    @JsonIgnore
    private Boolean delFlag;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("入住时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;

    @ApiModelProperty("退房时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    @ApiModelProperty("备注")
    private String note;

    @ApiModelProperty("楼层")
    private String floor;

    @ApiModelProperty("楼栋")
    private String building;
}
